package com.cg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("public.order")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Order {

    @TableId(value = "order_id", type = IdType.ASSIGN_ID)
    private Long orderId;

    @TableField(value = "user_id")
    private Integer userId;

    @TableField(value = "commodity_name")
    private String commodityName;

    @TableField(value = "stock_id")
    private Long stockId;

}
